package com.antdesignbackend.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("T_Log")
public class Log {

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;

    @TableField("CreateTime")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("LogType")
    private Integer logType;

    @TableField("UserName")
    private String userName;

    @TableField("LogContent")
    private String logContent;

}
